<template>
  <dv-border-box1>
    <el-card class="common-card">
      <div class="title">{{ title }}</div>
      <div class="value">{{ value }}</div>
      <div class="chart">
        <slot></slot>
      </div>
      <div class="line"></div>
      <div class="bottom">
        <slot name="bottom"></slot>
      </div>
    </el-card>
  </dv-border-box1>
</template>

<script setup lang="ts">
// 引入动态线条
import { BorderBox1 as DvBorderBox1 } from "@kjgl77/datav-vue3";
defineProps(["title", "value"]);
</script>
<script lang="ts">
export default {
  name: "CommonCard",
};
</script>

<style lang="scss" scoped>
.common-card {
  .title {
    font-size: 18px;
    color: white;
    font-family: YouSheBiaoTiHei;
  }
  .value {
    font-size: 25px;
    margin: 5px 0;
    letter-spacing: 1px;
    font-family: MetroDF;
  }
  .chart {
    height: 50px;
  }
  .line {
    border: 1px #eee solid;
    margin: 10px 0;
  }
  .bottom {
    font-size: 12px;
    color: #666;
  }
}
</style>
